package physics.collision;

import model.objects.Level;


/**
 * Defines the behavior of the level goal. If any Collidable collides with a
 * Collidable, the level is beaten. This strategy introduces introduces a
 * potential bug, as the LevelGoal cannot distinguish whether the colliding
 * GameObject is the Hero, and therefore the level could be beaten when another
 * object collides with the one using this strategy.
 * 
 * @author geo4
 * 
 */
public class LevelGoalStrategy implements CollisionStrategy {

    @Override
    public void collisionAction (Level level, CollisionEvent collisionEvent) {
        level.setLevelWon(true, "Reached Level Goal");
    }

}
